package com.hmall.common.client;

import com.hmall.common.dto.OrderDetail;
import com.hmall.common.pojo.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * TODO
 *
 * @Author whx
 * @Date 2024/11/15 23:36
 */
@FeignClient("orderservice")
public interface OrderClient {

    @GetMapping("/order/list")
    public List<Order> selectList();

    @GetMapping("order")
    public List<OrderDetail> queryOrderDetailById(@RequestParam("orderId")Long orderId);

    @PutMapping("/order")
    public void updateOrder(@RequestParam("orderId") Long orderId);

}
